gtk-demo: Avoid a compiler warning
authorMatthias Clasen <mclasen@redhat.com>
Sun, 13 Apr 2014 05:13:40 +0000 (22:13 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 13 Apr 2014 05:13:40 +0000 (22:13 -0700)
demos/gtk-demo/links.c

index f0c6d80579209a7413bb315f9c12dd5fa0ddd096..fa3075d22566286a32a076abe1ba5b3fed1edf9e 100644 (file)
@@ -33,7 +33,7 @@ activate_link (GtkWidget   *label,
                  "The term <i>keynav</i> is a shorthand for "
                  "keyboard navigation and refers to the process of using "
                  "a program (exclusively) via keyboard input.");
-      gtk_window_set_modal (dialog, TRUE);
+      gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 
       gtk_window_present (GTK_WINDOW (dialog));
       g_signal_connect (dialog, "response", G_CALLBACK (response_cb), NULL);